<div id="content_header">
  <h3>{{ current.CategoryName }} Editing</h3>
</div>
<div class="row">
  <div class="col-md-6 col-lg-4">
    <form name="form" role="form" ng-submit="update()">

      <div class="form-group" ng-class="{ 'has-error': errors.Name}">
        <label class="required" for="Name">Name</label>
        <input type="text" name="Name" class="form-control" id="Name" placeholder="Category name" ng-model="current.Name" required>
        <error-widget field="errors.Name"></error-widget>
      </div>

      <div class="form-group" ng-class="{ 'has-error': errors.Code}">
        <label class="required" for="Code">Code</label>
        <input type="text" name="Code" class="form-control" id="Code" placeholder="Category code" ng-model="current.Code" required>
        <error-widget field="errors.Code"></error-widget>
      </div>

      <button type="submit" class="btn btn-primary" >Submit</button>
    </form>
  </div>
</div>